<?php

namespace App\Models\Common\EntityData\Channel;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Cp
 * @package App\Models\Common\EntityData\Channel
 * @version August 1, 2017, 4:31 pm UTC
 */
class Cp extends Model
{
    use SoftDeletes;

    public $table = 'cps';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'name',
        'title',
        'subtitle',
        'short_desc',
        'created_at',
        'updated_at'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' => 'string',
        'title' => 'string',
        'subtitle' => 'string',
        'short_desc' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'name' => 'required|max:100',
        'title' => 'max:100',
        'subtitle' => 'max:100',
        'short_desc' => 'required|max:100'
    ];

    
}
